package com.youdoneed.community.forumConfig.dao;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.community.forumConfig.entity.Forumconfiguration;
import org.apache.ibatis.annotations.Param;

/**
 * 猿圈配置表数据库接口
 * @author lid
 * @date 2017.6.19
 */
@Mapper
public interface ForumconfigurationMapper {
	
    int deleteByPrimaryKey(String forumConfigurationId);

    int insert(Forumconfiguration record);

    int insertSelective(Forumconfiguration record);

    Forumconfiguration selectByPrimaryKey(String forumConfigurationId);

    int updateByPrimaryKeySelective(Forumconfiguration record);

    int updateByPrimaryKey(Forumconfiguration record);
    
    /**
     * 获取猿圈配置
     * @return Forumconfiguration
     * @author lid
     * @date 2017.6.19
     */
    Forumconfiguration getConfiguration();

    /**
     * 修改猿圈配置
     * @return Forumconfiguration
     * @author xz
     * @date 2017.6.19
     */
    Forumconfiguration updateByPrimaryKey(@Param("forumConfigurationId") String forum_configuration_id,@Param("nearbyMsgDistance") Double nearby_msg_distance,@Param("heatMsgLikesPointCount") Integer heat_msg_likes_point_count,@Param("heatMsgCommentCount") Integer heat_msg_comment_count,@Param("nearbyMsgDays") Integer nearby_msg_days);
}